package com.bus.core.dao;

import java.util.List;

import com.bus.common.hibernate4.Updater;
import com.bus.common.page.Pagination;
import com.bus.core.entity.BusUser;

/**
 * 用户DAO接口
 */
public interface BusUserEntityDao{
	public Pagination getPage(String username, String email, Integer siteId,
			Integer groupId, Integer statu, Boolean admin, Integer rank,
			String realName,Integer roleId,Boolean allChannel,
			Boolean allControlChannel,int pageNo,
			int pageSize);
	
	public List<BusUser> getList(String username, String email, Integer siteId,
			Integer groupId, Integer statu, Boolean admin, Integer rank);

	public List<BusUser> getAdminList(Integer siteId, Boolean allChannel,
			Integer statu, Integer rank);
	
	public Pagination getAdminsByRoleId(Integer roleId, int pageNo, int pageSize);

	public BusUser findById(Integer id);

	public int countByUsername(String username);
	
	public int countMemberByUsername(String username);

	public int countByEmail(String email);

	public BusUser save(BusUser bean);

	public BusUser deleteById(Integer id);
}